import request from './request.js'

export function getSingerList (type, area, initial) {
  return request.get('/artist/list', {
    params: {
      limit: 100,
      offset: 0,
      type: type,
      area: area,
      initial: initial
    }
  })
}

// 获取歌手详情
export function getSingerIntro (id) {
  return request.get('/artist/desc', {
    params: {
      id: id
    }
  })
}

// 获取歌手专辑
export function getSingerAlbum (id) {
  return request.get('/artist/desc', {
    params: {
      id: id,
      limit: 50,
      offset: 0
    }
  })
}

// 获取歌手热门50首歌曲
export function getSingerTopSongs (id) {
  return request.get('/artist/top/song', {
    params: {
      id: id
    }
  })
}

// 获取歌手全部歌曲
export function getSingerAllSongs (id) {
  return request.get('/artist/songs', {
    params: {
      id: id,
      order: 'time',
      limit: 50,
      offset: 0
    }
  })
}

// 获取歌手MV
export function getSingerMv (id) {
  return request.get('/artist/mv', {
    params: {
      id: id
    }
  })
}

// 获取相似歌手
export function getSimiSinger (id) {
  return request.get('/simi/artist', {
    params: {
      id: id
    }
  })
}

// 获取歌手信息
export function getSingerDetail (id) {
  return request.get('/artists', {
    params: {
      id: id
    }
  })
}
